package com.situ.mall.manager.service;

import com.github.pagehelper.PageInfo;
import com.situ.mall.manager.entity.Goods;

import java.util.List;

//规定分类发相关操作
public interface GoodsService {
    //添加
    int add(Goods goods) throws Exception;
    //删除
    int remove(Integer id) throws Exception;
    //修改
    int edit(Goods goods) throws Exception;
    //查询
    Goods getById(Integer id) throws Exception;

    //根据条件搜索
    List<Goods> search(Goods goods);

    /**
     *分页的
     * @param page
     * @param limit
     * @param goods
     * @return
     */
    PageInfo searchByPage(Integer page, Integer limit, Goods goods);
}
